/*
 * XML Type:  XLoginForm
 * Namespace: http://www.seedwill.com/xul/form/
 * Java type: com.seedwill.xul.form.XLoginForm
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.form.impl;
/**
 * An XML XLoginForm(@http://www.seedwill.com/xul/form/).
 *
 * This is a complex type.
 */
public class XLoginFormImpl extends com.seedwill.xul.form.impl.XFormImpl implements com.seedwill.xul.form.XLoginForm
{
    private static final long serialVersionUID = 1L;
    
    public XLoginFormImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName LOGINUSER$0 = 
        new javax.xml.namespace.QName("", "loginUser");
    private static final javax.xml.namespace.QName LOGINPWD$2 = 
        new javax.xml.namespace.QName("", "loginPwd");
    private static final javax.xml.namespace.QName SERVER$4 = 
        new javax.xml.namespace.QName("", "server");
    private static final javax.xml.namespace.QName LOGINBUTTON$6 = 
        new javax.xml.namespace.QName("", "loginButton");
    private static final javax.xml.namespace.QName CANCELBUTTON$8 = 
        new javax.xml.namespace.QName("", "cancelButton");
    
    
    /**
     * Gets the "loginUser" element
     */
    public com.seedwill.xul.widget.XInput getLoginUser()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XInput target = null;
            target = (com.seedwill.xul.widget.XInput)get_store().find_element_user(LOGINUSER$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "loginUser" element
     */
    public void setLoginUser(com.seedwill.xul.widget.XInput loginUser)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XInput target = null;
            target = (com.seedwill.xul.widget.XInput)get_store().find_element_user(LOGINUSER$0, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.widget.XInput)get_store().add_element_user(LOGINUSER$0);
            }
            target.set(loginUser);
        }
    }
    
    /**
     * Appends and returns a new empty "loginUser" element
     */
    public com.seedwill.xul.widget.XInput addNewLoginUser()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XInput target = null;
            target = (com.seedwill.xul.widget.XInput)get_store().add_element_user(LOGINUSER$0);
            return target;
        }
    }
    
    /**
     * Gets the "loginPwd" element
     */
    public com.seedwill.xul.widget.XInput getLoginPwd()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XInput target = null;
            target = (com.seedwill.xul.widget.XInput)get_store().find_element_user(LOGINPWD$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "loginPwd" element
     */
    public void setLoginPwd(com.seedwill.xul.widget.XInput loginPwd)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XInput target = null;
            target = (com.seedwill.xul.widget.XInput)get_store().find_element_user(LOGINPWD$2, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.widget.XInput)get_store().add_element_user(LOGINPWD$2);
            }
            target.set(loginPwd);
        }
    }
    
    /**
     * Appends and returns a new empty "loginPwd" element
     */
    public com.seedwill.xul.widget.XInput addNewLoginPwd()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.widget.XInput target = null;
            target = (com.seedwill.xul.widget.XInput)get_store().add_element_user(LOGINPWD$2);
            return target;
        }
    }
    
    /**
     * Gets the "server" element
     */
    public java.lang.String getServer()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SERVER$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "server" element
     */
    public org.apache.xmlbeans.XmlString xgetServer()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SERVER$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "server" element
     */
    public void setServer(java.lang.String server)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SERVER$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SERVER$4);
            }
            target.setStringValue(server);
        }
    }
    
    /**
     * Sets (as xml) the "server" element
     */
    public void xsetServer(org.apache.xmlbeans.XmlString server)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SERVER$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SERVER$4);
            }
            target.set(server);
        }
    }
    
    /**
     * Gets the "loginButton" element
     */
    public java.lang.String getLoginButton()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOGINBUTTON$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "loginButton" element
     */
    public org.apache.xmlbeans.XmlString xgetLoginButton()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LOGINBUTTON$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "loginButton" element
     */
    public void setLoginButton(java.lang.String loginButton)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOGINBUTTON$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOGINBUTTON$6);
            }
            target.setStringValue(loginButton);
        }
    }
    
    /**
     * Sets (as xml) the "loginButton" element
     */
    public void xsetLoginButton(org.apache.xmlbeans.XmlString loginButton)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LOGINBUTTON$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LOGINBUTTON$6);
            }
            target.set(loginButton);
        }
    }
    
    /**
     * Gets the "cancelButton" element
     */
    public java.lang.String getCancelButton()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANCELBUTTON$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "cancelButton" element
     */
    public org.apache.xmlbeans.XmlString xgetCancelButton()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CANCELBUTTON$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "cancelButton" element
     */
    public void setCancelButton(java.lang.String cancelButton)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANCELBUTTON$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CANCELBUTTON$8);
            }
            target.setStringValue(cancelButton);
        }
    }
    
    /**
     * Sets (as xml) the "cancelButton" element
     */
    public void xsetCancelButton(org.apache.xmlbeans.XmlString cancelButton)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CANCELBUTTON$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CANCELBUTTON$8);
            }
            target.set(cancelButton);
        }
    }
}
